SELF_DIR:=$(dir $(lastword $(MAKEFILE_LIST)))
VERBOSE=n
ifeq ($(VERBOSE), y)
QUIET_PREFIX=@
else
QUIET_PREFIX=
endif

###### Echo debugging {{{
# Escape code
esc=$(shell echo -en "\033")

# Set colors
cc_red="${esc}[0;31m"
cc_green="${esc}[0;32m"
cc_yellow="${esc}[0;33m"
cc_normal=$(shell echo -en "${esc}[m\017")

define error_print
	echo -en "$(cc_red)${1}$(cc_normal)"
endef
define info_print
	@echo ${cc_green}${1}${cc_normal}
endef

define warning_print
	echo -en "$(cc_yellow)${1}$(cc_normal)"
endef
### }}}
